﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("Courseware")]
    public class Courseware : IEntity<int>
    {
        //自增长ID
        public int ID { get; set; }
        //课件地址
        [Required]
        [StringLength(500)]
        public string FileURL { get; set; }
        //课件标题
        [Required]
        [StringLength(50)]
        public string Title { get; set; }
        //课件类型
        [StringLength(10)]
        public string DocType { get; set; }
        //所属课程
        public long CourseID { get; set; }
        //上传时间
        public DateTime CreateTime { get; set; }
        //作者
        public string Author { get; set; }
    }
}
